//
//  NSMutableAttributedString+OFAttributedString.h
//  CCAttributedStringDemo
//
//  Created by offcn_44 on 2017/3/28.
//  Copyright © 2017年 offcn_44. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSMutableAttributedString (OFAttributedString)
/*
 字体颜色
 **/
-(NSMutableAttributedString*(^)(UIColor*))textColor;
/*
 背景颜色
 **/
-(NSMutableAttributedString*(^)(UIColor*))backgroundColor;
/*
 字号
 **/
-(NSMutableAttributedString*(^)(UIFont*))font;
/*
 下划线
 **/
-(NSMutableAttributedString*(^)(NSUnderlineStyle))underline;
/*
  下划线颜色
 **/
-(NSMutableAttributedString*(^)(UIColor*))underlineColor;
/*
 描边
 **/
-(NSMutableAttributedString*(^)(UIColor*))strokeColor;
/*
 描边宽度
 **/
-(NSMutableAttributedString*(^)(CGFloat))strokeWidth;
/*
 斜体
 **/
-(NSMutableAttributedString*(^)(BOOL))obliqueness;
/*
 扁平体
 **/
-(NSMutableAttributedString*(^)(BOOL))expansion;
/*
 删除线
 **/
-(NSMutableAttributedString*(^)(BOOL))strikethrough;
/*
 删除线颜色
 **/
-(NSMutableAttributedString*(^)(UIColor*))strikethroughColor;
/*
 连体
 **/
-(NSMutableAttributedString*(^)(BOOL))ligature;
/*
 字体阴影
 **/
-(NSMutableAttributedString*(^)(NSShadow*))shadow;
/*
 凸版印刷体
 **/
-(NSMutableAttributedString*(^)(BOOL))effectLetterpressStyle;
/*
 字体偏移
 **/
-(NSMutableAttributedString*(^)(CGFloat))baselineOffset;
/*
 URL链接
 **/
-(NSMutableAttributedString*(^)(NSURL*))link;
/*
 书写方向
 **/
-(NSMutableAttributedString*(^)(id))writingDirection;
/*
 行间距
 **/
-(NSMutableAttributedString*(^)(CGFloat))lineSpace;
/*
 字间距
 **/
-(NSMutableAttributedString*(^)(CGFloat))textSpace;
/*
 插入图片
 **/
-(NSMutableAttributedString*(^)(NSTextAttachment*,NSInteger))attachment;
/*
 根据一串或者一组字符串添加效果
 **/
-(NSMutableAttributedString*(^)(id))rangeString;
/*
 根据range添加效果
 **/
-(NSMutableAttributedString*(^)(NSRange))range;
/*
 匹配所有的rangeString，添加效果
 **/
-(NSMutableAttributedString*(^)())all;
/*
 给第几个ranggeString添加效果
 **/
-(NSMutableAttributedString*(^)(NSInteger))rangeIndex;
@end
